<?php

/**
 * 
 * @desc Not empty data validation rule 
 * @author Barbushin Sergey http://www.linkedin.com/in/barbushin
 * 
 */
class Validator_Rule_Required extends Validator_RuleAbstract {
	
	protected $errorText = 'require to be not empty';

	public function isValid($value) {
		parent::isValid($value);
		return $this->validate();
	}

	protected function validate() {
		return !$this->isEmpty();
	}
}
